package com.qxbb.report.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.qxbb.report.utils.CustomDoubleSerialize;
import lombok.Builder;
import lombok.Data;

/**
 * @version 1.0
 * @author: pebble
 * @data 2023/9/30 10:17
 * 销售详情VO
 *
 */
@Data
@Builder
public class ChainSalesOrderVO {

    /**
     * 销售数量
     */
    private Integer totalQuantity;

    /**
     * 退货数量
     */
    private Integer totalQuantityR;

    /**
     * 净销量（非数据库）
     */
    private Integer netSales;

    /**
     * 赠品数量
     */
    private Integer totalQuantityF;

    /**
     * 销售额 c
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double netAmount;

    /**
     * 退货额 d
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double netAmountR;

    /**
     * 净销售额  c-d
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double inNetAmount;

    /**
     *  优惠总额（  g)
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double totalDiscountAmount;

    /**
     * 净销售利润 (c - d - e -f -g )
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double netSalesProfit;

    /**
     *代金卷总额
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double coupon;

    /**
     * vip积分换现金
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double vipScore;

    /**
     * 预存款消费
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double chainPrepaidAmount;

    /**
     * 刷卡
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double cardAmount;

    /**
     * 现金
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double cashAmount;

    /**
     * 微信
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double weChatAmount;

    /**
     * 支付宝
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double alipayAmount;



    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double prestoreCard;

    /**
     * 现金
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double prestoreCash;

    /**
     * 微信
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double prestoreWeChat;

    /**
     * 支付宝
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double prestoreAlipay;

    /**
     * 实收现金等
     */
    private int netReceipts;
}
